/**
 * Class for configurable constants to the program
 * 
 */
public class Properties {

	// Elves
	// How many elves constitute a group
	public static final int ELVES_PER_GROUP = 3;
	// Elf min work time before having a problem
	public static final int ELF_MIN_WORKTIME = 100;
	// Elf max work time before having a problem
	public static final int ELF_MAX_WORKTIME = 5000;
	// Elf count
	public static final int TOTAL_ELVES = 20;
	// Elf fix time
	public static final int ELF_FIX_TIME = 0;

	
	// Reindeer
	// Reindeer min time on vacation before returning
	public static final int REINDEER_MIN_VACATION = 12000;
	// Reindeer max time on vacation before returning
	public static final int REINDEER_MAX_VACATION = 15000;
	// Reindeer names
	public static final String[] REINDEER_NAMES = { "Dasher", "Dancer",
			"Prancer", "Vixen", "Comet", "Cupid", "Donner", "Blitzen",
			"Rudolph" };	
	// How many reindeer exist
	public static final int TOTAL_REINDEER = REINDEER_NAMES.length;

	
	// How long does it take to deliver presents
	public static final int TRIP_TIME = 2000;

	/**
	 * Convenience method to get a random number within a range. Copied from a
	 * StackOverflow post
	 * http://stackoverflow.com/questions/363681/java-generating
	 * -random-number-in-a-range
	 * 
	 * @param min
	 *            - Minimum number for the random number
	 * @param max
	 *            - Maximum number for the random number
	 * @return - integer within the range
	 */
	public static int randomNumber(int min, int max) {
		return min + (int) (Math.random() * ((max - min) + 1));
	}

}
